<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">忘记密码</h1>
		</header>

		<div class="mui-content" id="forget-vue">
			<form class="mui-input-group margin-t-15 padding-5">
				<div class="mui-input-row">
					<label>用户名</label>
					<input type="text" class="mui-input-clear" maxlength="20" placeholder="请输入用户名" v-model="form.username">
				</div>
				<div class="mui-input-row">
					<label>手机号</label>
					<input type="text" class="mui-input-clear" maxlength="11" placeholder="请输入手机号" v-model="form.phoneNumber">
				</div>
				<div class="mui-input-row">
					<label>新密码</label>
					<input type="password" class="mui-input-password" maxlength="20" placeholder="请输入新密码">
				</div>
				
				<div class="mui-button-row margin-h-15 padding-w-15">
					<button type="button" class="mui-btn mui-btn-primary button-fill button-big" @click="modifyPassword">确认修改</button>
				</div>

			</form>

		</div>

		<script src="../js/mui.min.js"></script>
		<script type="text/javascript" src="../js/vue.min.js" ></script>
		<script type="text/javascript">
			new Vue({
				el:"#forget-vue",
				data:{
					form:{
						username:"",
						phoneNumber:"",
						password:""
					}
				},
				methods:{
					modifyPassword:function(){
						 mui.prompt('请输入手机号验证码','','+86 ' + this.form.phoneNumber,['取消','确认'],function (e) {
						 	if(e.index != 1){
						 		return;
						 	}
						   mui.alert(JSON.stringify(e),'title','btnValue',function (e1) {
						      mui.openWindow("login.html","login.html");
						   },'div')
						},'div')
					}
				}
			})
		</script>
	</body>

</html>